package com.hsbc.dev.teamo4.sms.common.base;

import java.io.Serializable;
/**
 * @author:Kevin
 * @version:
 * @Project: permission_manage
 * @Package: com.hsbc.dev.teamo4.sms.common.base
 * @Description:
 * @Date date: 2018/7/26
 */
public class EntityBean implements Serializable{

    private String createId;
    private String createTime;
    private String updateId;
    private String updateTime;
    private Boolean isEnable;

   public EntityBean(){
   }

    public String getCreateId() {
        return createId;
    }

    public void setCreateId(final String createId) {
        this.createId = createId;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(final String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateId() {
        return updateId;
    }

    public void setUpdateId(final String updateId) {
        this.updateId = updateId;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(final String updateTime) {
        this.updateTime = updateTime;
    }

    public Boolean getIsEnable() {
        return isEnable;
    }

    public void setIsEnable(final Boolean enable) {
        isEnable = enable;
    }
    @Override
    public String toString() {
        return  createId + ',' +
                createTime + ',' +
                updateId + ',' +
                updateTime + ',' +
                isEnable;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        EntityBean that = (EntityBean) o;

        if (createTime != that.createTime) {
            return false;
        }
        if (updateTime != that.updateTime) {
            return false;
        }
        if (createId != null ? !createId.equals(that.createId) : that.createId != null) {
            return false;
        }
        return (updateId != null ? updateId.equals(that.updateId) : that.updateId == null) && (isEnable != null ? isEnable.equals(that.isEnable) : that.isEnable == null);
    }

    @Override
    public int hashCode() {
        int result = createId != null ? createId.hashCode() : 0;
        result = 31 * result + (createTime != null ? createTime.hashCode() : 0);
        result = 31 * result + (updateId != null ? updateId.hashCode() : 0);
        result = 31 * result + (updateTime != null ? updateTime.hashCode() : 0);
        result = 31 * result + (isEnable != null ? isEnable.hashCode() : 0);
        return result;
    }
}
